package com.bydq.patrolsystem.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class FunctionTreeVo {

    //标题
    private String title;

    private Long id;

    private List<FunctionTreeVo> children;

    private boolean disabled;

    //是否展开现在设置为展开
    private boolean spread = true;


    public FunctionTreeVo(String functionName, Long id, List<FunctionTreeVo> eachChilds, boolean b) {
        this.title = functionName;
        this.id = id;
        this.children = eachChilds;
        this.disabled = b;
    }


}
